import 'package:ai_model/generated/json/base/json_field.dart';
import 'dart:convert';
import 'package:ai_model/generated/json/api_do_login_by_s_m_s_captcha_entity.g.dart';

//api_do_login_by_s_m_s_captcha_entity.g.dart

@JsonSerializable()
class ApiDoLoginBySMSCaptchaEntity{
  String? code;
  String? message;
  UserInfoAndTokenData? data;

  ApiDoLoginBySMSCaptchaEntity();

  factory ApiDoLoginBySMSCaptchaEntity.fromJson(Map<String, dynamic> json) => $ApiDoLoginBySMSCaptchaEntityFromJson(json);

  Map<String, dynamic> toJson() => $ApiDoLoginBySMSCaptchaEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class UserInfoAndTokenData{
  UserInfo? userInfo;
  String? token;

  UserInfoAndTokenData();

  factory UserInfoAndTokenData.fromJson(Map<String, dynamic> json) => $UserInfoAndTokenDataFromJson(json);

  Map<String, dynamic> toJson() => $UserInfoAndTokenDataToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class UserInfo  {
  int? id;
  String? userCode;
  String? userName;
  String? status;
  String? statusName;
  int? createDate;
  String? createDateStr;
  String? createPerson;
  int? updateDate;
  String? updateDateStr;
  String? updatePerson;
  String? remark;
  String? headImg;
  String? loginName;
  String? phoneNumber;
  dynamic? attrMap;


  UserInfo();

  factory UserInfo.fromJson(Map<String, dynamic> json) => $UserInfoFromJson(json);

  Map<String, dynamic> toJson() => $UserInfoToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
